﻿<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>我的桌面</title>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="../h-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="../h-ui/static/h-ui.admin/css/style.css" />
      
</head>
<body>
	<div class="page-container">
		<p class="f-20 text-success">欢迎使用考试系统 <span class="f-14">v1.0</span>后台</p>
        <p>当前登录IP：<label id="ip"></label></p>  
        <p>当前时间：<label id="time" /> </p>
	</div>
	<footer class="footer mt-20">
		<div class="container">
			<p>感谢H-ui提供前台页面框架<br>
				Copyright &copy;2018-2018 考试系统 v1.0 All Rights Reserved.<br>
				本后台系统由<b>学术部-余军</b>提供技术支持</p>
		</div>
	</footer>


    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
    <script type="text/javascript">
        //获取当前时间
        function getCurDate()
        {
             var week;
             var d = new Date();
             switch (d.getDay())
             {
                 case 1: week="星期一"; break;
                 case 2: week="星期二"; break;
                 case 3: week="星期三"; break;
                 case 4: week="星期四"; break;
                 case 5: week="星期五"; break;
                 case 6: week="星期六"; break;
                 default: week="星期天";
             }
             var years = d.getFullYear();
             var month = add_zero(d.getMonth()+1);
             var days = add_zero(d.getDate());
             var hours = add_zero(d.getHours());
             var minutes = add_zero(d.getMinutes());
             var seconds=add_zero(d.getSeconds());
             var ndate = years+"年"+month+"月"+days+"日 "+hours+":"+minutes+":"+seconds+" "+week;
             document.getElementById("time").innerHTML = ndate;
        }
        //格式化时间
        function add_zero(temp)
        {
            if (temp < 10)
                return "0" + temp;
            else
                return temp;
        }
        //每隔1秒钟执行方法
        setInterval("getCurDate()", 1000);
        //显示当前IP
        document.getElementById("ip").innerHTML = returnCitySN["cip"] + ',' + returnCitySN["cname"];
    </script>
</body>

</html>